import axios from "axios";
export default {
  // 获取渠道列表
  getChannelConfigList(data){
    let url = `/szgjadmin/channel/getChannelList`
    return axios.post(url, data)
  },
  // 新增渠道
  addChannel(data){
    let url = `/szgjadmin/channel/addChannel`
    return axios.post(url, data)
  },
  // 编辑更新渠道
  updateChannel(data){
    let url = `/szgjadmin/channel/updateChannel`
    return axios.post(url, data)
  },
  // 渠道H5页面设置
  pageSet(data){
    let url = `/szgjadmin/channel/setChannel`
    return axios.post(url, data)
  },
  // 渠道统计列表
  getChannelStatistic(data){
    let url = `/szgjadmin/channelStatistics/getChannelStatisticsList`
    return axios.post(url, data)
  },
  // 查询页面配置
  getChannelPageSet(data){
    let url = `/szgjadmin/channel/getChannelSetByChannelId?`
    url += `channelId=${data.channelId}`
    return axios.get(url)
  },
 // 实名展示
  getRealAndLoanInfo(data){
    let url = `/szgjadmin/userPage/getRealAndLoanInfo`
    return axios.post(url, data)
  },
  setRealAndLoanData(data){
    let url = `/szgjadmin/userPage/setRealAndLoanData`
    return axios.post(url, data)
  }
  
}